import request from '@/utils/request'

// 查询返修领料单体列表
export function listRequisitionline(query) {
  return request({
    url: '/rr/requisitionline/list',
    method: 'get',
    params: query
  })
}
// 查询返修领料单体列表不分页
export function getLineList(query) {
  return request({
    url: '/rr/requisitionline/getList',
    method: 'get',
    params: query
  })
}

// 查询返修领料单体详细
export function getRequisitionline(id) {
  return request({
    url: '/rr/requisitionline/' + id,
    method: 'get'
  })
}

// 新增返修领料单体
export function addRequisitionline(data) {
  return request({
    url: '/rr/requisitionline',
    method: 'post',
    data: data
  })
}

// 修改返修领料单体
export function updateRequisitionline(data) {
  return request({
    url: '/rr/requisitionline',
    method: 'put',
    data: data
  })
}

// 删除返修领料单体
export function delRequisitionline(id) {
  return request({
    url: '/rr/requisitionline/' + id,
    method: 'delete'
  })
}
